package nl.rintcius.groovy

import junit.framework.TestCase

public class ExpandoBuilderTest extends TestCase {
	
    public void testBuilder() {
		def builder = new ExpandoBuilder()
		
		def res = builder.root(s:"q", l:[1,2,3], m:[1:2], 10) {
			nested {
				more(s:"w")
			}
		}
		println(res)
		assertEquals("q", res.root.s)
		assertEquals([1,2,3], res.root.l)
		assertEquals([1:2], res.root.m)
		assertEquals("w", res.root.nested.more.s)
    }
}
